package com.inter.service;

import com.inter.entity.common.OrderPaymentManager;
import com.inter.entity.common.OrderRefPackageManager;
import com.inter.entity.common.PartnerProductPackage;
import com.inter.entity.common.UserboundPaymentOrder;

import java.util.List;

public interface OrderPaymentManagerService {

     Integer storageOrderPayment(OrderPaymentManager userOrder);

    public void updateOrderIdByRequestOrderIdAndDeviceId(OrderPaymentManager user);

    public void updateIsOpenAndNotify(OrderPaymentManager userOrder);

    public List<OrderPaymentManager> getListToOpen();

    public int findOrderIdByNotify(String orderId);

    public void updatePayRst(OrderPaymentManager paymentOrder);

    public OrderPaymentManager queryOrderByOrderId(String orderId);

    public void updateIsNotify(OrderPaymentManager paymentOrder);

    public List<OrderPaymentManager> getOrderResultsList(String orderId, String deviceId);

    public void updateIsChannelNotity(OrderPaymentManager paymentOrder);

    public List<OrderPaymentManager> getChannelResultList();

    public void insertRefPackage(OrderRefPackageManager ref);

    public void UpdatePaypalNotify(UserboundPaymentOrder order);

    Integer findDataByRequestOrderId(String requestOrderId, String deviceId, String orderPeriod, String partnerCode, String packageCode);

    PartnerProductPackage queryPackageByCode(String partnerCode, String packageCode);
}
